package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface FoodmaterialService {

	public Foodmaterial saveFoodmaterial(Foodmaterial foodmaterial);

	public Set<Foodmaterial> loadFoodmaterials();

	public Set<Foodmaterial> loadReferenceFoodmaterials(Set<Foodmaterial> foodmaterials);

	public Set<Foodmaterial> loadFoodmaterialsByIdSet(Set<Integer> foodmaterialsId);

	public Map<String, ?> loadFoodmaterialObjectReferencedSet(Foodmaterial foodmaterial);

	public Map<String, ?> loadFoodmaterialClassReferencedSet(Foodmaterial foodmaterial);

	public void deleteFoodmaterial(Foodmaterial foodmaterial);

	public void deleteFoodmaterials(Set<Integer> deleteFoodmaterialsId);

	public List<Foodmaterial> findAllFoodmaterials(Integer startResult, Integer maxRows);

	public Foodmaterial findFoodmaterialByPrimaryKey(Integer id);

	public Integer countFoodmaterials();

	public Integer countFoodmaterials(CmiPagination page);

	public Integer countFoodmaterialsByName(String queryName);

	public Integer countFoodmaterialsByDetachedCriteria(CmiPagination page);

}
